<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Client\Index;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//Route::post('/admin/login','Client\Login@Login'); // 登陆
Route::get('/login','Client\Login@LoginView')->name('login'); // 登陆页面
//Route::get('/admin/captcha','Client\Login@getCaptcha');

Route::post('login', 'Client\Login@login');
Route::middleware("auth:client")->prefix('admin')->group(function () {
    Route::post('logout', 'Client\Login@loginOut');
    Route::post('refresh', 'Client\Login@refresh');
    Route::post('me', 'Client\Login@myInfo');
});



